diff --git a/swh/web/ui/templates/apidoc.html b/swh/web/ui/templates/apidoc.html index c2cb1c21..8ddf6be0 100644 --- a/swh/web/ui/templates/apidoc.html +++ b/swh/web/ui/templates/apidoc.html @@ -1,119 +1,119 @@ {% extends "layout.html" %} {% block title %}Software Heritage API{% endblock %} {% block content %} {% if docstring %}

Overview

- {% autoescape off %} {{ docstring | safe_docstring_display }} {% endautoescape %} + {{ docstring | safe_docstring_display | safe }}
{% endif %} {% if response_data and response_data is not none %}

Request

{{ request.method }} {{ request.url }}

Result

-
{% autoescape off %}{{ response_data | urlize_api_links }}{% endautoescape %}
+
{{ response_data | urlize_api_links | safe }}
{% if headers_data and headers_data is not none %}

Headers

{% for header_name, header_value in headers_data.items() %}
{{ header_name }}
{{ header_value | urlize_header_links | safe }}
{% endfor %}
{% endif %}
{% endif %}
{% for url in urls %} {% endfor %}
URL Allowed Methods
{{ url['rule'] }} {{ url['methods'] | sort | join(', ') }}

{% if args and args|length > 0 %}

Args

{% for arg in args %}
{{ arg['name'] }}: {{ arg['type'] }}
-
{% autoescape off %} {{ arg['doc'] | safe_docstring_display }} {% endautoescape %}
+
{{ arg['doc'] | safe_docstring_display | safe }}
{% endfor %}
{% endif %} {% if params and params|length > 0 %}

Params

{% for param in params %}
{{ param['name'] }}: string
-
{% autoescape off %} {{ param['doc'] | safe_docstring_display }} {% endautoescape %}
+
{{ param['doc'] | safe_docstring_display | safe }}
{% endfor %}
{% endif %} {% if excs and excs|length > 0 %}

Raises

{% for exc in excs %}
{{ exc['exc'] }}
-
{% autoescape off %} {{ exc['doc'] | safe_docstring_display }} {% endautoescape %}
+
{{ exc['doc'] | safe_docstring_display | safe }}
{% endfor %}
{% endif %} {% if headers %}

Headers

{% for header in headers %}
{{ header['name'] }}: string
-
{% autoescape off %} {{ header['doc'] | safe_docstring_display }} {% endautoescape %}
+
{{ header['doc'] | safe_docstring_display | safe }}
{% endfor %}
{% endif %} {% if return %}

Returns

{{ return['type'] }}
-
{% autoescape off %} {{ return['doc'] | safe_docstring_display }} {% endautoescape %}
+
{{ return['doc'] | safe_docstring_display | safe }}
{% endif %} {% if examples %}

Examples

{% for example in examples %}
{{ example }}
{% endfor %}
{% endif %} {% endblock %}